<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class UserCoupon extends Model
{

    /**
     * 表名称
     * @var $table;
     */
    protected $table = 'user_coupon';

    /**
     * 主键
     * @var $primaryKey
     */
    protected $primaryKey = 'id';


    use SoftDeletes;


    protected $dates = ['deleted_at','created_at'];

    public $timestamps = false;

    /**
     * 自动填充字段
     * @var $fillable
     */
    protected $fillable = [
        'user_id', 'coupon_id', 'use_time', 'created_at', 'deleted_at'
    ];

}
